#ifndef CLIENTLIST_H
#define CLIENTLIST_H

#include <QObject>
#include <QListWidget>
#include "experimentconfiguration.h"
QT_BEGIN_NAMESPACE
class QGroupBox;
class QLabel;
class QListWidget;
class QPushButton;
class ServerNetworkProcessing;
QT_END_NAMESPACE
class ClientList : public QListWidget
{
    Q_OBJECT
public:
    ClientList(QWidget *parent = nullptr);
    void addPiece(ExperimentConfiguration::clientStatic addClient);
    void addSportItem();
    void initPiece();
    QString clientIpAddr;
public slots:
    void clientConnection();
    void clientStart();
    void clientStop();
    void updateTcpSocketView(bool);
private:
    QGroupBox *getClientInfo(QString ipAddr);
    ExperimentConfiguration & s_EC;
    ExperimentConfiguration::clientStatic clientConfig;
    QPushButton *clientConnectionButton;
    QPushButton *clientStopButton;
    QPushButton *clientStartButton;
    QLabel *clientStaticLabel;
    bool tcpSocketConnectStatic;
};

#endif // CLIENTLIST_H
